package com.sdu.cloudservice.dao;

import com.sdu.cloudservice.entity.ConfigInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * Create by zekdot on 19-6-24.
 */
@Mapper
@Repository
public interface ConfigInfoDao {
    /**
     * 得到最新配置信息
     * @return 最新配置信息实体类
     */
    @Select("SELECT * FROM config_info ORDER BY id DESC LIMIT 1")
    public ConfigInfoEntity getNewestConfig();
}
